<script>
import HeaderPage from "@/components/headerPage.vue";
import {searchSub} from "@/api/searchPage";

export default {
  name: "searchPage",
  components: {HeaderPage},
  data() {
    return {
      formSub: {
        keyword: '',
        type: '',
        subjectId: 22,
        pageNum: 1,
        pageSize: 15,
      },
    }
  },
  mounted() {
    console.log(this.$route.query)
    this.getSub()
  },
  methods: {
    //搜索学科
    getSub() {
      searchSub(this.formSub).then(res => {
        console.log(res)
      })
    }
  }
}
</script>

<template>
  <div>
    <header-page></header-page>
  </div>
</template>

<style scoped lang="less">

</style>
